<!DOCTYPE html>
<html>
<head>
  <title>MyScrum</title>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
  <%= stylesheet_link_tag 'frontends' %>
</head>
<body>
<div id="header">
	<div id="wrapLogo">
		<%= image_tag("layout/logo.png", :id => "logo") %>
	</div>
	<div id="login">
		<h3>Login</h3>
		<% if session[:user_id] && User.find(session[:user_id]) %>
        	<%= link_to "logout",:controller => "sessions", :action => "delete" %>
     	<% else%>
	        <%= link_to "login", :controller => "sessions", :action => "new" %>
	    <% end %>
		<%= link_to "Neu hier", :controller => "companies", :action => "new"%><br>
		<% if flash[:notice]%>
			<%= flash[:notice]%>
	    <% end %>
	</div>
</div>
<div id="wrapNavigationBar">
	<div id="navigationBar">
		<ul class="navigationBar">
		  <li><a href="" class="navigationBarLink">Features</a></li>
		  <div class="pipe"></div>
		  <li><a href="" class="navigationBarLink">Preisliste</a></li>
	      <div class="pipe"></div>
		 </ul>
	</div>
</div>
<div id="content">
<%= yield %>
</div>
<div id="footer">
		<%= render :partial => "layouts/footer" %>
	</div>
</body>
</html>